package textfield;
import org.xml.sax.Attributes;
/**
 * Drug.java
 *
 *
 * Created: Sat Aug 28 12:42:24 2010
 *
 * @author <a href="mailto:fred@theseibels.com">Fred Seibel</a>
 * @version 1.0
 */

public class Drug {
    String n;
    int textNumber;
    String conditional;
    String dest;
    public Drug(Attributes attributes) {
	n = attributes.getValue("n");
	textNumber = Integer.valueOf(attributes.getValue("t")).intValue();
	conditional = attributes.getValue("c");
	dest = attributes.getValue("d");
   } // Drug constructor
    public String toString() {
	return n + "\t" + textNumber + "\t" + conditional + "\t" + dest;
    }
} // Drug
